<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<p>
<TABLE class="table0" cellSpacing=0 cellPadding=0 align=center bgcolor="#FFFFFF">
    <TR>
        <TD class="td1"></TD>

        <TD class="top"></TD>
        <TD class="topright"></TD>
    </TR>
    <TR>
        <TD class="middleleft" rowSpan=3></TD>
        <TD bgcolor="#F0F0F0">
            <center> <h4>Infomation Contact </h4></center>

        </TD>
        <TD class="middleright" rowSpan=3></TD>
    </TR>
    <TR>
        <TD class="middlecenter"></TD>
    </TR>
    <TR>
        <TD class="main">
            Your code: &ensp;<b> <font size="2" color="red">${carOrder.orderId}</font></b><br/>
            your id: :<b> <font size="2" color="red">${carOrder.custId}</font></b><br/>
            your mail:<b> <font size="2" color="red"> ${cus.email}</font></b><br/>
            Day booking: ${carOrder.orderDate}<br/>
            <c:if test="${cartCar != null}">
                <table border="0" width="580">
                    <tr bgcolor="#F0F0F0">
                        <td>Car name</td>
                        <td>Quantity</td>
                        <td>Price</td>
                        <td>Pickup date</td>
                        <td>Dropoff date</td>
                        <td>Total</td>
                    </tr>
                    <c:forEach items="${cartCar}" var="car">
                        <tr>
                            <td>${car.carsDTO.carName}</td>
                            <td>${car.qty}</td>
                            <td>${car.carsDTO.price}</td>
                            <td>${car.pickUpdate}</td>
                            <td>${car.dropOffDate}</td>
                            <td>${car.total}</td>
                        </tr>

                    </c:forEach>
                </table>
            </c:if>
            Amount to be paid :<b><font size="5" color="red"> ${carOrder.amount}</font></b><br/>
            </p>
            <p>
                You try remember code, you can lookup your booking or cancel booking<br/>
                Note: after booking 1 day,You do not pay we will cancel your booking.
            </p>
            <a href="index.jsp"> go to hom page</a>
        </TD>
    </TR>
    <TR>
        <TD class="bottom"><IMG border=0 alt="" src="img/pod_main_bottom_left.gif"></TD>
        <TD class="bottomright"><P align=right>&nbsp;</P></TD>
        <TD class="bottomleft"><IMG border=0 alt="" src="img/pod_main_bottom_right.gif"></TD>
    </TR>
</TABLE>